﻿<%@ Page Language="C#" MasterPageFile="~/Admin/doanhnghiep.master" AutoEventWireup="true" CodeFile="D_Sanphamdoanhnghiep.aspx.cs" Inherits="Admin_D_Sanphamdoanhnghiep" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <table width="100%" border="0">
        <tr>
            <td colspan="7" class="font">
                Danh sách sản phẩm <asp:Literal ID="tendn" runat="server"></asp:Literal></td>
        </tr>
                <tr><td colspan="8"><p></p></td></tr>

        <tr>
            <td colspan="5" style="height: 26px; width: 697px;">
                Tên sản phẩm:
                <asp:TextBox ID="txttensp" runat="server"></asp:TextBox>&nbsp;
                 Tình trạng:
                <asp:DropDownList ID="drtt" runat="server">
                </asp:DropDownList>
                <asp:Button ID="Button1" runat="server" Text="Tìm kiếm" OnClick="Button1_Click" /></td>
            <td style="width: 150px; height: 26px;font-size:medium" align="right">
                <asp:HyperLink ID="hp_them" runat="server">Thêm Sản Phẩm</asp:HyperLink> | <asp:LinkButton ID="lbt_xoa" runat="server" OnClick="lbt_xoa_Click" Text="Xóa"></asp:LinkButton> </td>            
        </tr>
        <tr>
            <td colspan="7">
                <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound" EnableTheming="True" >
                
                <HeaderTemplate>
                <table cellpadding="3" cellspacing="0" width="100%" style="background-color:Teal; border-color:White">
                <thead>
                <tr class="fontht2">
                <td style="width:5%">Ma</td>
                <td style="width:20%">Deal</td>
                <td style="width:15%">Hình ảnh</td>
                <td style="width:10%">Giá bán</td>
                <td style="width:10%">Danh mục</td>
                <td style="width:10%">Tình trạng</td>
                <td style="width:10%">Sửa</td>
                <td style="width:20%"><input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a></td>
                </tr>
                </thead>                         
                 </table>
                </HeaderTemplate>
               <ItemTemplate>
                <table cellpadding="3" cellspacing="0" width="100%" border="1" style="border-style:inset; border-color:Blue">
                <tbody>
                <tr>
                 <td  style="width:5%"><%#Eval("masp") %></td>
                    <td style="width:20%">
                        <asp:HyperLink ID="hp_tensp" runat="server"></asp:HyperLink></td>
                        <td style="width:15%">
                           <asp:Image ID="hinh" runat="server" Width="100" Height="100" /></td>
                            <td style="width:10%"><%#Eval("giagoc") %>
                                </td>
                                                                  
                       <td style="width:10%">
                           <asp:Literal ID="lit_dm" runat="server" ></asp:Literal></td>
                          <td style="width:10%">
                               <asp:HyperLink ID="hp_tt" runat="server"></asp:HyperLink>
                           </td>
                           <td style="width:10%">
                               <asp:HyperLink ID="hp_sua" runat="server">Edit</asp:HyperLink></td>  
                                <td style="width:20%"><asp:CheckBox ID="cb_Xoa" runat="server" /><asp:HiddenField ID="hf_id" Value='<%#Eval("masp") %>' runat="server" /></td>                
                                  
                </tr>
                    
                </tbody>
                </table>
               </ItemTemplate>
               <FooterTemplate>
               </FooterTemplate>
                 </asp:Repeater>
                <cc1:PagerV2_8 ID="pager" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>

